package com.xxx.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.TreeSet;

@Data
public class CreateOrderDto {
    @NotEmpty(message = "课程ID不能为空")
    private TreeSet<String> courseIds;

    @NotNull(message = "支付方式不能为空")
    private Integer payType;

    @NotBlank(message = "防重token不能为空")
    private String token;

    @NotNull(message = "秒杀标志,不能为空")
    private Integer type;

}
